package com.webex.ta.hydra.hamal;

import com.webex.ta.hydra.gui.wm.ToolWindowManager;
import com.webex.ta.hydra.plugin.HydraPlugin;

import javax.swing.*;
import java.awt.*;

/**
 * Created by Cisco WebEx.
 * User: vegaz
 * Date: 2010-10-26
 * Time: 13:33:13
 */
public class HamalPlugin implements HydraPlugin {
    public void activate() {
        JPanel p = new JPanel(new BorderLayout());
        p.add(new JLabel("Hamal extension"));
        ToolWindowManager.getInstance().registerToolWindow("Hamal", p, SwingConstants.RIGHT, "Hamal", null);
    }

    public void deactivate() {
        System.out.println("HAMAL PLUGIN DEACTIVATE");
        ToolWindowManager.getInstance().unregisterToolWindow("Hamal");
    }
}
